import ins from '@/utils/request.js'

//获取用户列表
export function getUserList(params) {
    return ins({
        url: '/user/list',
        params
    })
}

//创建用户
export function addUser(data) {
    return ins({
        url: '/user/add',
        method: 'post',
        data
    })
}

//编辑用户
export function editUser(data) {
    return ins({
        url: '/user/edit',
        method: 'post',
        data
    })
}

//设置用户状态
export function changeUserStatus(data) {
    return ins({
        url: '/user/status',
        method: 'post',
        data
    })
}

//删除
export function delUser(data) {
    return ins({
        url: '/user/remove',
        method: 'post',
        data
    })
}